//package com.quectel.core.mongo;
//
//import com.quectel.core.BaseTest;
//import com.quectel.core.config.MongoTransactionManagerConfig;
//import com.quectel.util.client.mongo.MongoBaseModel;
//import com.quectel.util.mongo.MongodbUtils;
//import lombok.AllArgsConstructor;
//import lombok.Data;
//import org.junit.jupiter.api.Test;
//import org.springframework.transaction.annotation.Transactional;
//
///**
// * 在这里编写说明
// *
// * @author: caolu
// * @email: louis.cao@quectel.com
// * @date: 2023-04-26 14:05:00
// */
//public class MongoTransactionService extends BaseTest {
//    @Data
//    @AllArgsConstructor
//    static class User implements MongoBaseModel {
//        private String name;
//    }
//    @Test
//    @Transactional(transactionManager = MongoTransactionManagerConfig.MONGO_TRANSACTION_MANAGER)
//    public void test() {
//        MongodbUtils.add(new User("a"), "a");
//        MongodbUtils.add(new User("b"), "b");
//    }
//}
